package me.cabbit.digitone.tones;

/** 
 * An interface to listen events triggered by Screentones
 */
public interface ScreentoneListener {
	
	/**
	 * Called when an option or property of a screentone changed
	 * This can be used to be notified of changes that require
	 * a data refresh (like a new string generation or redisplay)
	 */
	public void propertyChanged();
	
	/**
	 * Used when asnychrousnously requesting a new SVG, this 
	 * method will be called upon progress notifications
	 * Can be used to, for instance, update a progress bar
	 * 
	 * @param progress amount of progress from 0 to 100
	 */
	public void buildProgressChanged(int progress);
}
